package routes

import (
	"gitee.com/song-yao-shun/MQH/controller"
	"gitee.com/song-yao-shun/MQH/middleware"
	"github.com/gin-gonic/gin"
)

func FctRoutes(r *gin.Engine){
	fctController := controller.NewFctController()

	fct := r.Group("api/fcts",middleware.AuthMiddleware())
	{
		fct.POST("",fctController.Create)
		fct.PUT("/:id",fctController.Update)
		fct.GET("/:id",fctController.Show)
		fct.DELETE("/:id",fctController.Delete)
		fct.POST("/getall",fctController.List)
	}
}
